discord.py aliases

84

discord python command alias -

@commands.command(aliases=['testcommand', 'testing'])
async def test(self, ctx):
    await ctx.send("This a test command")

how to limit a command to a role in discord.py -

@bot.command()
@commands.has_role('RoleName')
async def command_name():

Comments

Submit
0 Comments